<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.sql.*"%>

<html>
<head>
    <title>人力指数</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="css/swiper-4.2.0.min.css">
    <link rel="stylesheet" href="css/top.css" type="text/css">
    <link rel="stylesheet" href="css/chart_test.css" type="text/css">
    <script src="js/Chart.min.js" type="text/javascript"></script>
</head>
<body>
<%@ include file="module/top.jsp"%>
<%  Object user_id = session.getAttribute("user_id");
    boolean flag =false;
    String driver = "com.mysql.jdbc.Driver";
    Class.forName(driver);
    Connection con=java.sql.DriverManager.getConnection("jdbc:mysql://localhost/detecting_system","root","");
    Statement stmt=con.createStatement();
    ResultSet rs=stmt.executeQuery(" select * from market_management where user_id="+user_id);
    while(rs.next())
    {
        if(rs.getString(4).equals("1")){
            flag=true;
        }
    }
    if (!flag) {/* 权限 */
        out.println("<script language=javascript>alert('你不能访问此版块');window.location.href='login_show.jsp'</script>");
        return;
    }
    String[][] salary_avg = new String[20][20];
    String[][] education_level = new String[20][20];
    String[][] employee_average = new String[20][20];
    for(int g=1;g<=10;g++){
        rs=stmt.executeQuery("select * from market_data where market_id="+g);
        int j=1;
        while(rs.next())
        {
            salary_avg[g][j] = rs.getString(11);
            education_level[g][j] = rs.getString(12);
            employee_average[g][j] = rs.getString(13);
            j++;
        }
    }
    double[] sum=new double[11] ;
    for (int k =1;k<=10;k++){
        for (int m=1;m<=12;m++){
            sum[k]+=Double.valueOf(salary_avg[k][m])+Double.valueOf(education_level[k][m])+Double.valueOf(employee_average[k][m]);
        }
        sum[k]=sum[k]/12.0;
    }
    //关闭连接、释放资源

    rs.close();
    stmt.close();
    con.close();
%>
<div class="brandCon col-lg-12 col-md-12 col-sm-12">
    <h1>人力指数</h1>
    <div class="row">
        <ul class="brandUl col-lg-4 col-md-4 col-sm-4">
            <li>薪酬平均数</li>
            <li>雇员教育水平占比</li>
            <li>雇员平均数</li>
        </ul>
    </div>
    <div class="col-lg-6 col-md-6 col-sm-6"></div>
    <div class="deFloat"></div>
</div>
<div class="deFloat"></div>
<h6 title="为了方便您的观察，鼠标点击图表上方标签，即可隐去改标签数据">Tip:为了方便您的观察，鼠标点击图表上方标签，即可隐去改标签数据</h6>
<%--薪酬平均数--%>
<div class="registerCon">
    <h2>薪酬平均数</h2>
    <div class="can">
        <canvas id="shop1"></canvas>
    </div>
</div>
<%--雇员教育水平占比--%>
<div class="changeCon">
    <h2>雇员教育水平占比</h2>
    <div class="can">
        <canvas id="shop2"></canvas>
    </div>
</div>
<%--雇员平均数--%>
<div class="averageCon">
    <h2>雇员平均数</h2>
    <div class="can">
        <canvas id="shop3"></canvas>
    </div>
</div>
<%--人力指数比--%>
<div class="innovationRate">
    <h2>人力指数比</h2>
    <div class="can">
        <canvas id="shop4"></canvas>
    </div>
</div>



<%--雇员教育水平占比--%>
<script>

    var ctx = document.getElementById("shop1");
    var a = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ["2017-01", "2017-02", "2017-03", "2017-04", "2017-05", "2017-06", "2017-07", "2017-08", "2017-09", "2017-10", "2017-11", "2017-12"],
            datasets: [{
                label: '白云皮具城',
                data: [<%=salary_avg[1][1] %>,<%=salary_avg[1][2] %>,<%=salary_avg[1][3] %>,<%=salary_avg[1][4] %>,<%=salary_avg[1][5] %>,<%=salary_avg[1][6] %>,<%=salary_avg[1][7] %>,<%=salary_avg[1][8] %>,<%=salary_avg[1][9] %>,<%=salary_avg[1][10] %>,<%=salary_avg[1][11] %>,<%=salary_avg[1][12] %>],
                backgroundColor: [
                    'rgba(255, 250, 250, 0)'
                ],
                borderColor: [
                    'rgba(0,0,0, 1)'
                ],
                borderWidth: 1
            },{

                label: "广东芳村茶叶城",

                backgroundColor: [
                    'rgba(255, 250, 250, 0)'
                ],
                borderColor: [
                    'rgba(65,75, 125,0.9)'
                ],

                data: [<%=salary_avg[2][1] %>,<%=salary_avg[2][2] %>,<%=salary_avg[2][3] %>,<%=salary_avg[2][4] %>,<%=salary_avg[2][5] %>,<%=salary_avg[2][6] %>,<%=salary_avg[2][7] %>,<%=salary_avg[2][8] %>,<%=salary_avg[2][9] %>,<%=salary_avg[2][10] %>,<%=salary_avg[2][11] %>,<%=salary_avg[2][12] %>]
            },
                {

                    label: "广州国际轻纺城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(255, 255, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=salary_avg[3][1] %>,<%=salary_avg[3][2] %>,<%=salary_avg[3][3] %>,<%=salary_avg[3][4] %>,<%=salary_avg[3][5] %>,<%=salary_avg[3][6] %>,<%=salary_avg[3][7] %>,<%=salary_avg[3][8] %>,<%=salary_avg[3][9] %>,<%=salary_avg[3][10] %>,<%=salary_avg[3][11] %>,<%=salary_avg[3][12] %>]
                },
                {

                    label: "广州眼镜城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	127, 255, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=salary_avg[4][1] %>,<%=salary_avg[4][2] %>,<%=salary_avg[4][3] %>,<%=salary_avg[4][4] %>,<%=salary_avg[4][5] %>,<%=salary_avg[4][6] %>,<%=salary_avg[4][7] %>,<%=salary_avg[4][8] %>,<%=salary_avg[4][9] %>,<%=salary_avg[4][10] %>,<%=salary_avg[4][11] %>,<%=salary_avg[4][12] %>]
                },
                {

                    label: "国际皮革五金城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(255, 106, 106, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=salary_avg[5][1] %>,<%=salary_avg[5][2] %>,<%=salary_avg[5][3] %>,<%=salary_avg[5][4] %>,<%=salary_avg[5][5] %>,<%=salary_avg[5][6] %>,<%=salary_avg[5][7] %>,<%=salary_avg[5][8] %>,<%=salary_avg[5][9] %>,<%=salary_avg[5][10] %>,<%=salary_avg[5][11] %>,<%=salary_avg[5][12] %>]
                },
                {

                    label: "红棉国际时装城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	255, 140, 105, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=salary_avg[6][1] %>,<%=salary_avg[6][2] %>,<%=salary_avg[6][3] %>,<%=salary_avg[6][4] %>,<%=salary_avg[6][5] %>,<%=salary_avg[6][6] %>,<%=salary_avg[6][7] %>,<%=salary_avg[6][8] %>,<%=salary_avg[6][9] %>,<%=salary_avg[6][10] %>,<%=salary_avg[6][11] %>,<%=salary_avg[6][12] %>]
                },
                {

                    label: "华林国际",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(154, 50, 205, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=salary_avg[7][1] %>,<%=salary_avg[7][2] %>,<%=salary_avg[7][3] %>,<%=salary_avg[7][4] %>,<%=salary_avg[7][5] %>,<%=salary_avg[7][6] %>,<%=salary_avg[7][7] %>,<%=salary_avg[7][8] %>,<%=salary_avg[7][9] %>,<%=salary_avg[7][10] %>,<%=salary_avg[7][11] %>,<%=salary_avg[7][12] %>]
                },
                {

                    label: "清平医药中心",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(139, 119, 101, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=salary_avg[8][1] %>,<%=salary_avg[8][2] %>,<%=salary_avg[8][3] %>,<%=salary_avg[8][4] %>,<%=salary_avg[8][5] %>,<%=salary_avg[8][6] %>,<%=salary_avg[8][7] %>,<%=salary_avg[8][8] %>,<%=salary_avg[8][9] %>,<%=salary_avg[8][10] %>,<%=salary_avg[8][11] %>,<%=salary_avg[8][12] %>]
                },
                {

                    label: "万菱广场",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	255, 165, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=salary_avg[9][1] %>,<%=salary_avg[9][2] %>,<%=salary_avg[9][3] %>,<%=salary_avg[9][4] %>,<%=salary_avg[9][5] %>,<%=salary_avg[9][6] %>,<%=salary_avg[9][7] %>,<%=salary_avg[9][8] %>,<%=salary_avg[9][9] %>,<%=salary_avg[9][10] %>,<%=salary_avg[9][11] %>,<%=salary_avg[9][12] %>]
                },
                {

                    label: "五洲城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(139, 69, 19, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=salary_avg[10][1] %>,<%=salary_avg[10][2] %>,<%=salary_avg[10][3] %>,<%=salary_avg[10][4] %>,<%=salary_avg[10][5] %>,<%=salary_avg[10][6] %>,<%=salary_avg[10][7] %>,<%=salary_avg[10][8] %>,<%=salary_avg[10][9] %>,<%=salary_avg[10][10] %>,<%=salary_avg[10][11] %>,<%=salary_avg[10][12] %>]
                }
            ]
        },
        options: {
            title: {
                display: true
            }
        }
    });
</script>
<%--雇员教育水平占比--%>
<script>

    var ctx2 = document.getElementById("shop2");
    var a2 = new Chart(ctx2, {
        type: 'line',
        data: {
            labels: ["2017-01", "2017-02", "2017-03", "2017-04", "2017-05", "2017-06", "2017-07", "2017-08", "2017-09", "2017-10", "2017-11", "2017-12"],
            datasets: [{
                label: '白云皮具城',
                data: [<%=education_level[1][1] %>,<%=education_level[1][2] %>,<%=education_level[1][3] %>,<%=education_level[1][4] %>,<%=education_level[1][5] %>,<%=education_level[1][6] %>,<%=education_level[1][7] %>,<%=education_level[1][8] %>,<%=education_level[1][9] %>,<%=education_level[1][10] %>,<%=education_level[1][11] %>,<%=education_level[1][12] %>],
                backgroundColor: [
                    'rgba(255, 250, 250, 0)'
                ],
                borderColor: [
                    'rgba(0,0,0, 1)'
                ],
                borderWidth: 1
            },{

                label: "广东芳村茶叶城",

                backgroundColor: [
                    'rgba(255, 250, 250, 0)'
                ],
                borderColor: [
                    'rgba(65,75, 125,0.9)'
                ],

                data: [<%=education_level[2][1] %>,<%=education_level[2][2] %>,<%=education_level[2][3] %>,<%=education_level[2][4] %>,<%=education_level[2][5] %>,<%=education_level[2][6] %>,<%=education_level[2][7] %>,<%=education_level[2][8] %>,<%=education_level[2][9] %>,<%=education_level[2][10] %>,<%=education_level[2][11] %>,<%=education_level[2][12] %>]
            },
                {

                    label: "广州国际轻纺城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(255, 255, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=education_level[3][1] %>,<%=education_level[3][2] %>,<%=education_level[3][3] %>,<%=education_level[3][4] %>,<%=education_level[3][5] %>,<%=education_level[3][6] %>,<%=education_level[3][7] %>,<%=education_level[3][8] %>,<%=education_level[3][9] %>,<%=education_level[3][10] %>,<%=education_level[3][11] %>,<%=education_level[3][12] %>]
                },
                {

                    label: "广州眼镜城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	127, 255, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=education_level[4][1] %>,<%=education_level[4][2] %>,<%=education_level[4][3] %>,<%=education_level[4][4] %>,<%=education_level[4][5] %>,<%=education_level[4][6] %>,<%=education_level[4][7] %>,<%=education_level[4][8] %>,<%=education_level[4][9] %>,<%=education_level[4][10] %>,<%=education_level[4][11] %>,<%=education_level[4][12] %>]
                },
                {

                    label: "国际皮革五金城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(255, 106, 106, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=education_level[5][1] %>,<%=education_level[5][2] %>,<%=education_level[5][3] %>,<%=education_level[5][4] %>,<%=education_level[5][5] %>,<%=education_level[5][6] %>,<%=education_level[5][7] %>,<%=education_level[5][8] %>,<%=education_level[5][9] %>,<%=education_level[5][10] %>,<%=education_level[5][11] %>,<%=education_level[5][12] %>]
                },
                {

                    label: "红棉国际时装城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	255, 140, 105, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=education_level[6][1] %>,<%=education_level[6][2] %>,<%=education_level[6][3] %>,<%=education_level[6][4] %>,<%=education_level[6][5] %>,<%=education_level[6][6] %>,<%=education_level[6][7] %>,<%=education_level[6][8] %>,<%=education_level[6][9] %>,<%=education_level[6][10] %>,<%=education_level[6][11] %>,<%=education_level[6][12] %>]
                },
                {

                    label: "华林国际",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(154, 50, 205, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=education_level[7][1] %>,<%=education_level[7][2] %>,<%=education_level[7][3] %>,<%=education_level[7][4] %>,<%=education_level[7][5] %>,<%=education_level[7][6] %>,<%=education_level[7][7] %>,<%=education_level[7][8] %>,<%=education_level[7][9] %>,<%=education_level[7][10] %>,<%=education_level[7][11] %>,<%=education_level[7][12] %>]
                },
                {

                    label: "清平医药中心",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(139, 119, 101, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=education_level[8][1] %>,<%=education_level[8][2] %>,<%=education_level[8][3] %>,<%=education_level[8][4] %>,<%=education_level[8][5] %>,<%=education_level[8][6] %>,<%=education_level[8][7] %>,<%=education_level[8][8] %>,<%=education_level[8][9] %>,<%=education_level[8][10] %>,<%=education_level[8][11] %>,<%=education_level[8][12] %>]
                },
                {

                    label: "万菱广场",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	255, 165, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=education_level[9][1] %>,<%=education_level[9][2] %>,<%=education_level[9][3] %>,<%=education_level[9][4] %>,<%=education_level[9][5] %>,<%=education_level[9][6] %>,<%=education_level[9][7] %>,<%=education_level[9][8] %>,<%=education_level[9][9] %>,<%=education_level[9][10] %>,<%=education_level[9][11] %>,<%=education_level[9][12] %>]
                },
                {

                    label: "五洲城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(139, 69, 19, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=education_level[10][1] %>,<%=education_level[10][2] %>,<%=education_level[10][3] %>,<%=education_level[10][4] %>,<%=education_level[10][5] %>,<%=education_level[10][6] %>,<%=education_level[10][7] %>,<%=education_level[10][8] %>,<%=education_level[10][9] %>,<%=education_level[10][10] %>,<%=education_level[10][11] %>,<%=education_level[10][12] %>]
                }
            ]
        },
        options: {
            title: {
                display: true
            }
        }
    });
</script>
<%--雇员平均数--%>
<script>

    var ctx3 = document.getElementById("shop3");
    var a3 = new Chart(ctx3, {
        type: 'line',
        data: {
            labels: ["2017-01", "2017-02", "2017-03", "2017-04", "2017-05", "2017-06", "2017-07", "2017-08", "2017-09", "2017-10", "2017-11", "2017-12"],
            datasets: [{
                label: '白云皮具城',
                data: [<%=employee_average[1][1] %>,<%=employee_average[1][2] %>,<%=employee_average[1][3] %>,<%=employee_average[1][4] %>,<%=employee_average[1][5] %>,<%=employee_average[1][6] %>,<%=employee_average[1][7] %>,<%=employee_average[1][8] %>,<%=employee_average[1][9] %>,<%=employee_average[1][10] %>,<%=employee_average[1][11] %>,<%=employee_average[1][12] %>],
                backgroundColor: [
                    'rgba(255, 250, 250, 0)'
                ],
                borderColor: [
                    'rgba(0,0,0, 1)'
                ],
                borderWidth: 1
            },{

                label: "广东芳村茶叶城",

                backgroundColor: [
                    'rgba(255, 250, 250, 0)'
                ],
                borderColor: [
                    'rgba(65,75, 125,1)'
                ],

                data: [<%=employee_average[2][1] %>,<%=employee_average[2][2] %>,<%=employee_average[2][3] %>,<%=employee_average[2][4] %>,<%=employee_average[2][5] %>,<%=employee_average[2][6] %>,<%=employee_average[2][7] %>,<%=employee_average[2][8] %>,<%=employee_average[2][9] %>,<%=employee_average[2][10] %>,<%=employee_average[2][11] %>,<%=employee_average[2][12] %>]
            },
                {

                    label: "广州国际轻纺城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(255, 255, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=employee_average[3][1] %>,<%=employee_average[3][2] %>,<%=employee_average[3][3] %>,<%=employee_average[3][4] %>,<%=employee_average[3][5] %>,<%=employee_average[3][6] %>,<%=employee_average[3][7] %>,<%=employee_average[3][8] %>,<%=employee_average[3][9] %>,<%=employee_average[3][10] %>,<%=employee_average[3][11] %>,<%=employee_average[3][12] %>]
                },
                {

                    label: "广州眼镜城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	127, 255, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=employee_average[4][1] %>,<%=employee_average[4][2] %>,<%=employee_average[4][3] %>,<%=employee_average[4][4] %>,<%=employee_average[4][5] %>,<%=employee_average[4][6] %>,<%=employee_average[4][7] %>,<%=employee_average[4][8] %>,<%=employee_average[4][9] %>,<%=employee_average[4][10] %>,<%=employee_average[4][11] %>,<%=employee_average[4][12] %>]
                },
                {

                    label: "国际皮革五金城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(255, 106, 106, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=employee_average[5][1] %>,<%=employee_average[5][2] %>,<%=employee_average[5][3] %>,<%=employee_average[5][4] %>,<%=employee_average[5][5] %>,<%=employee_average[5][6] %>,<%=employee_average[5][7] %>,<%=employee_average[5][8] %>,<%=employee_average[5][9] %>,<%=employee_average[5][10] %>,<%=employee_average[5][11] %>,<%=employee_average[5][12] %>]
                },
                {

                    label: "红棉国际时装城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	255, 140, 105, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=employee_average[6][1] %>,<%=employee_average[6][2] %>,<%=employee_average[6][3] %>,<%=employee_average[6][4] %>,<%=employee_average[6][5] %>,<%=employee_average[6][6] %>,<%=employee_average[6][7] %>,<%=employee_average[6][8] %>,<%=employee_average[6][9] %>,<%=employee_average[6][10] %>,<%=employee_average[6][11] %>,<%=employee_average[6][12] %>]
                },
                {

                    label: "华林国际",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(154, 50, 205, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=employee_average[7][1] %>,<%=employee_average[7][2] %>,<%=employee_average[7][3] %>,<%=employee_average[7][4] %>,<%=employee_average[7][5] %>,<%=employee_average[7][6] %>,<%=employee_average[7][7] %>,<%=employee_average[7][8] %>,<%=employee_average[7][9] %>,<%=employee_average[7][10] %>,<%=employee_average[7][11] %>,<%=employee_average[7][12] %>]
                },
                {

                    label: "清平医药中心",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(139, 119, 101, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=employee_average[8][1] %>,<%=employee_average[8][2] %>,<%=employee_average[8][3] %>,<%=employee_average[8][4] %>,<%=employee_average[8][5] %>,<%=employee_average[8][6] %>,<%=employee_average[8][7] %>,<%=employee_average[8][8] %>,<%=employee_average[8][9] %>,<%=employee_average[8][10] %>,<%=employee_average[8][11] %>,<%=employee_average[8][12] %>]
                },
                {

                    label: "万菱广场",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(	255, 165, 0, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=employee_average[9][1] %>,<%=employee_average[9][2] %>,<%=employee_average[9][3] %>,<%=employee_average[9][4] %>,<%=employee_average[9][5] %>,<%=employee_average[9][6] %>,<%=employee_average[9][7] %>,<%=employee_average[9][8] %>,<%=employee_average[9][9] %>,<%=employee_average[9][10] %>,<%=employee_average[9][11] %>,<%=employee_average[9][12] %>]
                },
                {

                    label: "五洲城",

                    backgroundColor: [
                        'rgba(255, 250, 250, 0)'
                    ],
                    borderColor: [
                        'rgba(139, 69, 19, 1)'
                    ],
                    borderWidth: 1,
                    data: [<%=employee_average[10][1] %>,<%=employee_average[10][2] %>,<%=employee_average[10][3] %>,<%=employee_average[10][4] %>,<%=employee_average[10][5] %>,<%=employee_average[10][6] %>,<%=employee_average[10][7] %>,<%=employee_average[10][8] %>,<%=employee_average[10][9] %>,<%=employee_average[10][10] %>,<%=employee_average[10][11] %>,<%=employee_average[10][12] %>]
                }
            ]
        },
        options: {
            title: {
                display: true
            }
        }
    });
</script>
<%--人力指数比--%>
<script>

    var ctx4 = document.getElementById("shop4");
    var a4 = new Chart(ctx4, {
        type: 'radar',
        data: {
            labels: ["白云皮具城","广东芳村茶叶城","广州国际轻纺城","广州眼镜城","国际皮革五金城","红棉国际时装城","华林国际","清平医药中心","万菱广场","五洲城"],
            datasets: [{
                label: '人力指数比',
                data: [<%=sum[1] %>,<%=sum[2] %>,<%=sum[3] %>,<%=sum[4] %>,<%=sum[5] %>,<%=sum[6] %>,<%=sum[7] %>,<%=sum[8] %>,<%=sum[9] %>,<%=sum[10] %>],
                backgroundColor: [
                    'rgba(255, 150, 250, 0.5)'

                ],
                borderColor: [
                    'rgba(255, 150, 250,2)'
                ],
                borderWidth: 1
            }

            ]
        },
        options: {
            title: {
                display: true
            }
        }
    });
</script>

<script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>
</body>
</html>
